<template>
  <div class="headCont">
    <div class="headTitle">码客直通车——后台管理系统</div>
    <div class="userCont">
      <img src="/img/logo.png" />
      <div class="userName">管理员</div>
      <div class="outBtn" @click="outfn">退出</div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  props: {},
  methods: {
    outfn() {
      this.$router.push({ path: "/login" });
    },
  },
  mounted() {},
  created() {},
};
</script>

<style scoped lang="less">
.headCont {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  // padding-right: 5%;
  box-sizing: border-box;
  align-items: center;
  background-color: #fff;
  .headTitle {
    font-size: 20px;
    font-weight: bold;
    margin-left: 20px;
  }
  .userCont {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 15px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    img {
      height: 25px;
      width: 25px;
      border-radius: 50%;
      margin-right: 10px;
    }
    .userName {
      color: #86a9fb;
    }
    .outBtn {
      color: white;
      background-color: #86a9fb;
      border-radius: 5px;
      line-height: 40px;
      height: 40px;
      margin-left: 30px;
      padding: 0px 25px;
      font-size: 14px;
      cursor: pointer;
    }
    .outBtn:hover {
      opacity: 0.8;
    }
  }
}
</style>
